home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2000 July / CD 3 / redhat-6.2.iso / RedHat / instimage / usr / lib / anaconda / translate.py < prev    next >
Encoding:
Python Source  |  2000-03-08  |  377 b   |  16 lines

  1. import gettext_rh
  2.  
  3. class i18n:
  4.     def __init__(self):
  5.         self.cat = gettext_rh.Catalog ("anaconda", "/usr/share/locale")
  6.         
  7.     def setlangs(self, langs):
  8.         gettext_rh.setlangs (langs)
  9.         self.cat = gettext_rh.Catalog ("anaconda", "/usr/share/locale")
  10.  
  11.     def gettext(self, string):
  12.         return self.cat.gettext(string)
  13.  
  14. cat = i18n()
  15. _ = cat.gettext
  16.